//
// Created by YueChuan on 2023/3/10.
//

#ifndef NETWORKDISK_USERWIDGET_H
#define NETWORKDISK_USERWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QGridLayout>
#include <QPainter>
#include <QPainterPath>
#include "connectSocket.h"

class userWidget : public QWidget {
Q_OBJECT
public:
    explicit userWidget(QWidget *parent = nullptr);

    explicit userWidget(QString, QString, QString, QString, const QString &, QWidget *parent = nullptr);

    void disconnectSocket();

protected:
    void mouseDoubleClickEvent(QMouseEvent *event) override;

private:
    QLabel *userName;
    QLabel *upFileCount;
    QLabel *state;
    QGridLayout *layout;
    QString sendName;
    QString sendUid;
    QString acceptUid;
    QString acceptName;
    bool status;
    connectSocket *socket;
};


#endif //NETWORKDISK_USERWIDGET_H
